package string;

import java.util.BitSet;
import java.util.Date;

public class SignTest {

    private static String SIGN_KEY = "sign:%d:%s";
    public static void main(String[] args) {

        String key = String.format(SIGN_KEY, 123, new Date());
        System.out.println(key);

        int num = 3;

        System.out.println(SignTest.countNum(num));


        System.out.println("=====================================");

        System.out.println(3 >> 6);


    }

    public static int countNum(int num) {
        BitSet bitSet = new BitSet();
        bitSet.set(num);
        bitSet.set(4);
        long count = bitSet.stream().count();


        return (int) count;


    }
}
